﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="MyProfile.aspx.cs" Inherits="NetDon.OA.Portal.Admin.MyProfile" %>

<%@ Register Src="~/Controls/RequiredMark.ascx" TagName="ReMark" TagPrefix="ucc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <NetDon:FormPanel ID="fpUserInfo" runat="server" RepeatColumns="2">
                <Items>
                    <NetDon:FormItem HeaderText="用户名" ContentStyle-CssClass="TextContent" ColumnSpan="2">
                        <ContentStyle CssClass="TextContent" />
                        <ContentTemplate>
                            <asp:Label ID="txtUserName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderText="全称" ColumnSpan="2">
                        <ContentTemplate>
                            <asp:TextBox ID="txtFullName" runat="server" MaxLength="50" Text='<%# Bind("FullName") %>'></asp:TextBox>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderText="地址" ColumnSpan="2">
                        <ContentTemplate>
                            <asp:TextBox ID="txtAddress" runat="server" Width="99%" MaxLength="200" Text='<%# Bind("Address") %>'></asp:TextBox>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderText="电话">
                        <ContentTemplate>
                            <asp:TextBox ID="txtPhone" runat="server" MaxLength="50" Text='<%# Bind("Phone") %>'></asp:TextBox>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderText="手机号码">
                        <ContentTemplate>
                            <asp:TextBox ID="txtMobile" runat="server" MaxLength="50" Text='<%# Bind("Mobile") %>'></asp:TextBox>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem HeaderText="Email">
                        <ContentTemplate>
                            <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Text='<%# Bind("Email") %>'></asp:TextBox>
                              <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtEmail"
                            Display="None" SetFocusOnError="True" ErrorMessage="邮箱格式错误"
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </ContentTemplate>
                    </NetDon:FormItem>
                    <NetDon:FormItem FullRow="true" HeaderVisible="false">
                        <ContentStyle HorizontalAlign="Center" />
                        <ContentTemplate>
                            <asp:Button ID="btnRegister" runat="server" 
                                Text="保存" OnClick="btnRegister_Click"
                                SkinID="Button120"></asp:Button>
                                  <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List"
                ShowMessageBox="True" ShowSummary="False" />
                        </ContentTemplate>
                    </NetDon:FormItem>
                </Items>
            </NetDon:FormPanel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
